<%@ page import="java.io.File" %>
<%@ page import="com.liliya.utils.RandomFile" %>
<%@ page import="com.liliya.service.impl.AdServiceImpl" %>
<%@ page import="com.liliya.pojo.Ad" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/1/4
  Time: 14:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>广告展示</title>
    <style>

        .blue_text {
            width: 100px;
            background: rgb(112, 144, 183);
        }

        table, tr, td {
            border: 1px solid rgb(112, 144, 183);
            text-align: center;
        }

        td {
            padding: 9px;
        }

        table {
            margin: auto;
            margin-bottom: 100px;
            width: 650px;
        }

        .aaa {
            padding: 10px;
        }

        .main {
            border: 2px solid cornflowerblue;
        }
    </style>
</head>
<body>

<div style="width: 760px">
    <%@ include file="../common/header.jsp" %>
    <div class="main">
        <div style="margin: 10px 20px">
            <img src="${pageContext.request.contextPath}/img/adver.gif" alt="广告管理">
        </div>
        <div style="text-align: center;font-size: 22px;color:rgb(112, 144, 183);margin-bottom: 20px">
            当前网站广告显示
        </div>
        <div style="margin: auto;width: 80%">
            <img src="${pageContext.request.contextPath}${fileName}" width="100%" alt="">
        </div>
        <div style="text-align: center; margin: 30px">
            刷新页面可以随机看到其他广告

        </div>
    </div>


    <%@ include file="../common/footer.jsp" %>
</div>
</body>
</html>
